package com.hadwinling.article.mapper;
import com.hadwinling.article.entity.Article;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;

/**
* @Package com.hadwinling.article.mapper
* @author HadwinLing
* @date 2020/10/8 17:05
* @version V1.0
*/
@Mapper
public interface ArticleMapper {

    List<Article> selectAllArticle();

    Integer selectViewcountById(@Param("id")Integer id);

    int insertSelective(Article article);

    int updateViewcountById(@Param("updatedViewcount")Integer updatedViewcount,@Param("id")Integer id);

    int deleteById(@Param("id")Integer id);










}